hurd-EIEIO-undef
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 31 Oct 2019 19:36:09 +0000 (19:36 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 31 Oct 2019 19:36:09 +0000 (19:36 +0000)
===================================================================

Gbp-Pq: Topic hurd
Gbp-Pq: Name hurd-EIEIO-undef.diff

llvm/utils/TableGen/CodeEmitterGen.cpp

index da65763905a8f7e76411714687a6fdb7d916885e..67a25ecc7d2dadc9fedad47c68020a6ab61c2258 100644 (file)
@@ -247,6 +247,9 @@ void CodeEmitterGen::run(raw_ostream &o) {
   ArrayRef<const CodeGenInstruction*> NumberedInstructions =
     Target.getInstructionsByEnumValue();
 
+  o << "// Undef for HURD\n";
+  o << "#ifdef EIEIO\n#undef EIEIO\n#endif\n";
+
   // Emit function declaration
   o << "uint64_t " << Target.getName();
   o << "MCCodeEmitter::getBinaryCodeForInstr(const MCInst &MI,\n"